home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
pcrlg111.zip
/
PCRLOG.DOC
< prev
next >
Wrap
Text File
|
1992-03-09
|
14KB
|
342 lines
╔═══════════════════════════════════════════════════════════════╗
║ PCRLOG ║
║ version 1.11 ║
║ March 9, 1992 ║
║ Copyright (c) 1992 by Mike Bennett ║
╚═══════════════════════════════════════════════════════════════╝
╔═══════════════════════════════════════════════════════════════╗
║ PURPOSE ║
╚═══════════════════════════════════════════════════════════════╝
This program will read and summarize the log file created by the
PCRelay software, generate a report of the total HUB activity and
a summary of each node connecting with the HUB. The output may
be redirected to a file for viewing and/or maintaining a history
record of your PCRelay activity.
The program was originally created as a favor for one of my local
SysOps. He had been flipping the long distance bill for calling
the Regional PCRelay Hub twice a day for mail packets. Other
local nodes would in turn call him to take their conferences. He
asked me to write this program to analyze the PCRelay log and
provide an accurate percentage of total bytes moved to each node.
This information could then be used to evenly divide the long
distance charges among the other local nodes.
╔═══════════════════════════════════════════════════════════════╗
║ FEATURES ║
╚═══════════════════════════════════════════════════════════════╝
- Not crippled in any way
- Completely configurable
- Optionally specify dates to begin/end the analysis
- Optionally specify individual nodes to include/exclude
- Optionally specify a dollar amount to be divided between the
nodes
- Output includes summary of Hub and Node activity
- Total bytes sent
- Total bytes received
- Total bytes combined
- Total time online
- Total number of connects
- Percentages for all byte counts
- Process multiple logs during a single pass
╔═══════════════════════════════════════════════════════════════╗
║ DISCLAIMER OF WARRANTY ║
╚═══════════════════════════════════════════════════════════════╝
This program and all supporting documentation are provided "as
is" without warranty of any kind, either expressed or implied,
including but not limited to the implied warranties of
merchantability and fitness for a particular purpose. In no
event will the author be liable to you for any damages arising
out of the use or inability to use this program and/or all
supporting programs and documentation.
╔═══════════════════════════════════════════════════════════════╗
║ REGISTRATION ║
╚═══════════════════════════════════════════════════════════════╝
This program is a copyrighted work. Many hours of effort have
gone into the creation of this program.
You have a limited license to operate this program on your
computer for a period of no more than 30 days free of charge. If,
after this trial period, you decide you would like to continue
using it, you must register the program. ANY OTHER USE OF THIS
PROGRAM IS A VIOLATION OF COPYRIGHT LAWS.
To register the program please fill out the registration form
contained in REGISTER.DOC and sent it along with $10 to Mike
Bennett (the author). Your registration gets you:
- The right to continue to use PCRLOG for ever
- The right to download and use any future versions of PCRLOG
- A postcard from me with my thanks for supporting shareware
- A clear conscience
You are free to distribute the program to BBSs, shareware
vendors, etc., as long as you don't charge more than $2 for this
service and the COMPLETE archive is distributed.
╔═══════════════════════════════════════════════════════════════╗
║ USAGE ║
╚═══════════════════════════════════════════════════════════════╝
PCRLOG PCRelaylog1 <PCRelaylog2...> </cconfigfile>
PCRelaylog1 REQUIRED
The first PCRelay log to be analyzed. The full
DOS path must be given if the file is not in
the current directory.
PCRelaylog2... OPTIONAL
The second, third, forth, etc. PCRelay log to
be analyzed. The full DOS path must be given if
the file(s) are not in the current directory.
There is no limit internal to the PCRLOG
program for the number of log files that may be
processed during one pass. However, DOS does
have a 128 character limit on the command line.
(4DOS users - the limit is 255)
Sample command line:
PCRLOG PCRELAY1.LOG PCRELAY2.LOG
│ │ │
│ │ └─── PCRelay log file (PCRELAY2.LOG) │ └──────────────── PCRelay log file (PCRELAY1.LOG)
│ └──────────────── PCRelay log file (PCRELAY1.LOG)
└──────────────────────── program (PCRLOG.EXE)
/cconfigfile OPTIONAL
The configuration file. The full DOS path must
be given if the file is not in the current
directory.
This is an override switch that will prevent
the use of the default config file named
PCRLOG.CFG
Sample command line:
PCRLOG PCRELAY.LOG /CLOCAL.CFG
│ │ │ │
│ │ │ │
│ │ │ └─ config file (LOCAL.CFG)
│ │ └────── the /C switch
│ └─────────────── PCRelay log file (PCRELAY.LOG)
└─────────────────────── program (PCRLOG.EXE)
!! IMPORTANT !! - Notice that there is NO space between the
switch and the filename that follows.
╔═══════════════════════════════════════════════════════════════╗
║ USAGE TIPS ║
╚═══════════════════════════════════════════════════════════════╝
If you want to maintain a history of you PCRLOG output, then from
the DOS prompt type:
C:\PCRLOG PCRELAY.LOG >> HISTORY.LOG
This will redirect the output to a file named HISTORY.LOG in the
current directory. The 'double arrow' directs DOS to append any
output to the file. Therefore, you will have a running history.
Another nice idea is to pipe the output to either Vern Buerg's
LIST.COM or (for you 4DOS users) 4DOS's internal LIST. The
command for this is:
C:\PCRLOG PCRELAY.LOG | LIST /S
This command works great for those times when you want to view
all of the information without necessarily saving it to disk.
While in either of the LIST programs, you can browse through all
of the output (even if it is more than one screen) using the LIST
commands that you are familiar with.
╔═══════════════════════════════════════════════════════════════╗
║ CONFIGURATION FILE ║
╚═══════════════════════════════════════════════════════════════╝
All entries as well as the file itself are optional. An example
file is included named PCRLOG.CFG. Note that the program will
accept any valid DOS filename for the config file. Therefore you
may wish to create several different config files and choose one
of them at run time.
The use of a config is optional. Without a config file the
program will process the entire PCRelay log file.
The default config file should be named PCRLOG.CFG. It will be
used if it is in the current directory. This may be overridden
by the use of the /c command line switch.
The config file format is very simple. There are five (5)
keywords that direct the program to act in different manners. The
keywords are:
Include, Exclude, BeginDate, EndDate, Dollars
The format of the config file is as follows:
Include=NODEID1
Exclude=NODEID2
BeginDate=01/01/91
EndDate=12/31/91
Dollars=127.34
The entries are not case sensitive and may be listed in any
order. They MUST begin in column number 1 (all the way to the
left) and may only be listed one entry per line. To Include 6
different nodes in the analysis would require 6 Include lines.
Each of the keywords are explained in detail below.
╔═══════════════════════════════════════════════════════════════╗
║ INCLUDE / EXCLUDE ║
╚═══════════════════════════════════════════════════════════════╝
!!IMPORTANT!! - If a single entry is made with the 'Include'
keyword, indicating that you want the node to be included, then
only the specific nodes listed in the config file will be used in
the analysis process. In other words if you want to list the
nodes to be included, you must list them all. Any node not
listed in the config file will be ignored! (This ONLY applies if
the 'Include' keyword is used.)
This essentially means that there is no need to list both Include
and Exclude nodes in the same config file. If you specify only
one node to be Included, then there is no need to specify any
Exclude nodes.
Example:
If your config file contained the following:
Exclude=NODE-1
Then all nodes in the log would be included in the analysis
except for node NODE-1.
If your config file contained the following:
Exclude=NODE-1
Include=NODE-2
Then ONLY node NODE-2 would be included. Even if the log
contained entries for NODE-3 and NODE-4 they would NOT be
included because they were not specifically listed to be
included.
╔═══════════════════════════════════════════════════════════════╗
║ BEGINDATE / ENDDATE ║
╚═══════════════════════════════════════════════════════════════╝
The dates placed after the keyword MUST be in the format
MM/DD/YY. You may use any character to separate the month, day
and year. The following are acceptable dates:
12/15/91 01-15-92 01.01.91 05,15,92 03?13?91 09:30"92
These are not valid: 2/3/91 06/6/91
Specifying a BeginDate means that any session that STARTS on or
after this date will be included in the analysis.
Specifying an EndDate means that any session that STARTS on or
before this date will be included in the analysis.
You may specify both or neither for a complete analysis of the
entire log.
╔═══════════════════════════════════════════════════════════════╗
║ DOLLARS ║
╚═══════════════════════════════════════════════════════════════╝
Here you may put a numeric entry that will be divided evenly
between all of the reported nodes based on their total byte
percentage. The original purpose of this option was to allow the
SysOp to enter his monthly phone bill in this slot.
The format is simple - just enter a number. The decimal place is
optional. You could enter 100 or 100.00 both would produce the
same result. Note that 99999.99 is the maximum that the program
can handle.
NOTE!! - Due to the rounding performed internally there is a
possibility that the dollar values displayed will be either plus
or minus $0.01. I have tested the program using various numbers
and have never found the variance to be more than 1 penny.
╔═══════════════════════════════════════════════════════════════╗
║ SUPPORT ║
╚═══════════════════════════════════════════════════════════════╝
You can download the latest version of PCRLOG, or receive
technical support, from the following board:
THE TREE BBS (PCBoard)
Sysop: Frank Fowler
(904) 732-0866 HST
(904) 732-8273 2400
PCRelay node ->THETREE
I can also be reached through the RIME Shareware conference.
Please address all E-mail to "Mike Bennett"
╔═══════════════════════════════════════════════════════════════╗
║ HISTORY ║
╚═══════════════════════════════════════════════════════════════╝
1.00 Thu 03-05-1992
initial public release.
1.01 Sat 03-07-1992
HUB ID's containing numeric characters were not being
recognized. Fixed.
Minor update to the docs to elaborate on the /C command
line switch and its usage.
1.10 Sun 03-08-1992
Added support for multiple log files to be processed
during a single run.
1.11 Mon 03-09-1992
Fix a bug that prevented the dollar amount from being
calculated. Thanks for the bug report Rex Hankins!